﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="ModelBase.Silverlight.cs" company="JDML Consulting Ltd.">
//   Copyright 2011 Photon Project - http://photon.codeplex.com
// </copyright>
// --------------------------------------------------------------------------------------------------------------------

namespace Photon.ComponentModel.Modelling
{
    using System;
    using System.ComponentModel;

    public partial class ModelBase : INotifyDataErrorInfo
    {
        partial void RaiseErrorsChanged(MetaModelProperty property)
        {
            if (ErrorsChanged != null)
            {
                ErrorsChanged(this, new DataErrorsChangedEventArgs(property.Name));
            }
        }

        public event EventHandler<DataErrorsChangedEventArgs> ErrorsChanged;
    }
}